package study.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import study.interfaces.IBaseEnum;

@Getter
@AllArgsConstructor
public enum OrgType implements IBaseEnum {

    ADMIN("ADMIN", "管理", "A", "admin"),
    CUSTOMER("CUSTOMER", "品牌", "C", "customer"),
    STORE("STORE", "门店", "S", "store"),
    SUPPLIER("SUPPLIER", "供应商", "P", "supplier"),
    AGENT("AGENT", "代理商", "G", "agent"),
    ADVERTISER("ADVERTISER", "广告商", "D", "advertiser");

    private final String value;
    private final String desc;
    private final String prefix;
    private final String platform;

    @Override
    public String value() {
        return value;
    }

    @Override
    public String toString() {
        return "OrgType{" +
            "value='" + value + '\'' +
            ", desc='" + desc + '\'' +
            ", prefix='" + prefix + '\'' +
            ", platform='" + platform + '\'' +
            '}';
    }
}
